package mavenFy.fyDownLoader;

import com.hfy.utils.DownLoaderUtil;
import java.io.File;

public class TestClass {
    public static void main(String[] args) throws Exception {
//        Document doc = Jsoup.parse(new URL("http://movie.douban.com"),5000);
//        Elements imgs = doc.select("img");
//        DownLoader downLoad = new DownLoader(); 
//        for(Element img :imgs) {
//            String url = img.attr("src");
//            TaskBean task = new TaskBean(url,new File("D:/temp",StringUtil.getsuffixByUrl(url)+StringUtil.getprefixByUrl(url)));
//            downLoad.addTask(task);
//        }

        DownLoaderUtil.downM3u8("https://m3u8.40cdn.com/videos/kjxp/1905/thVTxkeu/thVTxkeu.m3u8", new File("D:/tem"));
    }
}
